import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.account.osAccount.d.ts',
  content: "/*\n * Copyright (c) 2021-2023 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit BasicServicesKit\n */\nimport type distributedAccount from './@ohos.account.distributedAccount';\nimport type { AsyncCallback } from './@ohos.base';\n/**\n * This module provides the capability to manage os accounts.\n *\n * @namespace osAccount\n * @syscap SystemCapability.Account.OsAccount\n * @since 7\n */\ndeclare namespace osAccount {\n    /**\n     * Obtains the AccountManager instance.\n     *\n     * @returns { AccountManager } Returns the instance of the AccountManager.\n     * @syscap SystemCapability.Account.OsAccount\n     * @since 7\n     */\n    function getAccountManager(): AccountManager;\n    /**\n     * Provides abilities for you to manage and perform operations on your OS accounts.\n     *\n     * @interface AccountManager\n     * @syscap SystemCapability.Account.OsAccount\n     * @since 7\n     */\n    interface AccountManager {\n        /**\n         * Checks whether the function of supporting multiple OS accounts is enabled.\n         *\n         * @param { AsyncCallback<boolean> } callback - Returns {@code true} if this function is enabled; returns {@code false} otherwise.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#checkMultiOsAccountEnabled\n         */\n        isMultiOsAccountEnable(callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether the function of supporting multiple OS accounts is enabled.\n         *\n         * @returns { Promise<boolean> } Returns {@code true} if this function is enabled; returns {@code false} otherwise.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#checkMultiOsAccountEnabled\n         */\n        isMultiOsAccountEnable(): Promise<boolean>;\n        /**\n         * Checks whether the function of supporting multiple OS accounts is enabled.\n         *\n         * @param { AsyncCallback<boolean> } callback - Returns {@code true} if this function is enabled; returns {@code false} otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        checkMultiOsAccountEnabled(callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether the function of supporting multiple OS accounts is enabled.\n         *\n         * @returns { Promise<boolean> } Returns {@code true} if this function is enabled; returns {@code false} otherwise.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        checkMultiOsAccountEnabled(): Promise<boolean>;\n        /**\n         * Checks whether an OS account is activated based on its local ID.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @param { AsyncCallback<boolean> } callback - Indicates the callback for checking whether the OS account is activated.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#checkOsAccountActivated\n         */\n        isOsAccountActived(localId: number, callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether an OS account is activated based on its local ID.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @returns { Promise<boolean> } Returns {@code true} if the OS account is activated; returns {@code false} otherwise.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#checkOsAccountActivated\n         */\n        isOsAccountActived(localId: number): Promise<boolean>;\n        /**\n         * Checks whether an OS account is activated based on its local ID.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @param { AsyncCallback<boolean> } callback - Indicates the callback for checking whether the OS account is activated.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid localId.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         * @deprecated since 11\n         */\n        checkOsAccountActivated(localId: number, callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether an OS account is activated based on its local ID.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @returns { Promise<boolean> } - Returns {@code true} if the OS account is activated; returns {@code false} otherwise.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid localId.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         * @deprecated since 11\n         */\n        checkOsAccountActivated(localId: number): Promise<boolean>;\n        /**\n         * Checks whether a constraint has been enabled for an OS account based on its local ID.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @param { string } constraint - Indicates the constraint to check. The value can be:\n         * <br> {@code constraint.wifi.set} - Indicates the constraint on configuring the Wi-Fi access point.\n         * <br> {@code constraint.sms.use} - Indicates the constraint on sending and receiving short messages.\n         * <br> {@code constraint.calls.outgoing} - Indicates the constraint on making calls.\n         * <br> {@code constraint.unknown.sources.install} - Indicates the constraint on installing applications\n         * <br> from unknown sources.\n         * @param { AsyncCallback<boolean> } callback - Indicates the callback for checking whether the constraint is enabled for the specified OS account.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#checkOsAccountConstraintEnabled\n         */\n        isOsAccountConstraintEnable(localId: number, constraint: string, callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether a constraint has been enabled for an OS account based on its local ID.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @param { string } constraint - Indicates the constraint to check. The value can be:\n         * <br> {@code constraint.wifi.set} - Indicates the constraint on configuring the Wi-Fi access point.\n         * <br> {@code constraint.sms.use} - Indicates the constraint on sending and receiving short messages.\n         * <br> {@code constraint.calls.outgoing} - Indicates the constraint on making calls.\n         * <br> {@code constraint.unknown.sources.install} - Indicates the constraint on installing applications\n         * <br> from unknown sources.\n         * @returns { Promise<boolean> } Returns {@code true} if the constraint has been enabled for the OS account;\n         *         returns {@code false} otherwise.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#checkOsAccountConstraintEnabled\n         */\n        isOsAccountConstraintEnable(localId: number, constraint: string): Promise<boolean>;\n        /**\n         * Checks whether the given constraint is enabled for the specified OS account.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @param { string } constraint - Indicates the constraint to check. For example: the value can be:\n         * <br> {@code constraint.wifi.set} - Indicates the constraint on configuring the Wi-Fi access point.\n         * <br> {@code constraint.sms.use} - Indicates the constraint on sending and receiving short messages.\n         * <br> {@code constraint.calls.outgoing} - Indicates the constraint on making calls.\n         * <br> {@code constraint.unknown.sources.install} - Indicates the constraint on installing applications\n         * <br> from unknown sources.\n         * @param { AsyncCallback<boolean> } callback - Indicates the callback for checking whether the constraint is enabled for the specified OS account.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid localId or constraint.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         * @deprecated since 11\n         */\n        checkOsAccountConstraintEnabled(localId: number, constraint: string, callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether the given constraint is enabled for the specified OS account.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @param { string } constraint - Indicates the constraint to check. For example: the value can be:\n         * <br> {@code constraint.wifi.set} - Indicates the constraint on configuring the Wi-Fi access point.\n         * <br> {@code constraint.sms.use} - Indicates the constraint on sending and receiving short messages.\n         * <br> {@code constraint.calls.outgoing} - Indicates the constraint on making calls.\n         * <br> {@code constraint.unknown.sources.install} - Indicates the constraint on installing applications\n         * <br> from unknown sources.\n         * @returns { Promise<boolean> } Returns whether the given constraint is enabled for the specified OS account.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid localId or constraint.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         * @deprecated since 11\n         */\n        checkOsAccountConstraintEnabled(localId: number, constraint: string): Promise<boolean>;\n        /**\n         * Checks whether the given constraint is enabled for the current OS account.\n         *\n         * @param { string } constraint - Indicates the constraint to check. For example: the value can be:\n         * <br> {@code constraint.wifi.set} - Indicates the constraint on configuring the Wi-Fi access point.\n         * <br> {@code constraint.sms.use} - Indicates the constraint on sending and receiving short messages.\n         * <br> {@code constraint.calls.outgoing} - Indicates the constraint on making calls.\n         * <br> {@code constraint.unknown.sources.install} - Indicates the constraint on installing applications\n         * <br> from unknown sources.\n         * @returns { Promise<boolean> } Returns whether the given constraint is enabled for the current OS account.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 11\n         */\n        isOsAccountConstraintEnabled(constraint: string): Promise<boolean>;\n        /**\n         * Checks whether this OS account is a test OS account.\n         *\n         * @param { AsyncCallback<boolean> } callback - Returns {@code true} if this OS account is a test OS account; returns {@code false} otherwise.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#checkOsAccountTestable\n         */\n        isTestOsAccount(callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether this OS account is a test OS account.\n         *\n         * @returns { Promise<boolean> } Returns {@code true} if this OS account is a test OS account; returns {@code false} otherwise.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#checkOsAccountTestable\n         */\n        isTestOsAccount(): Promise<boolean>;\n        /**\n         * Checks whether current OS account is testable.\n         *\n         * @param { AsyncCallback<boolean> } callback - Returns {@code true} if this account is testable; returns {@code false} otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        checkOsAccountTestable(callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether current OS account is testable.\n         *\n         * @returns { Promise<boolean> } Returns {@code true} if this account is testable; returns {@code false} otherwise.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        checkOsAccountTestable(): Promise<boolean>;\n        /**\n         * Checks whether an OS account has been verified based on its local ID.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS\n         * @param { AsyncCallback<boolean> } callback - Returns {@code true} if the OS account has been verified successfully;\n         *          returns {@code false} otherwise.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#checkOsAccountVerified\n         */\n        isOsAccountVerified(callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether an OS account has been verified based on its local ID.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @param { AsyncCallback<boolean> } callback - Returns {@code true} if the OS account has been verified successfully;\n         *          returns {@code false} otherwise.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#checkOsAccountVerified\n         */\n        isOsAccountVerified(localId: number, callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether an OS account has been verified based on its local ID.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @returns { Promise<boolean> } Returns {@code true} if the OS account has been verified successfully;\n         *          returns {@code false} otherwise.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#checkOsAccountVerified\n         */\n        isOsAccountVerified(localId?: number): Promise<boolean>;\n        /**\n         * Checks whether the current OS account is verified.\n         *\n         * @param { AsyncCallback<boolean> } callback - Indicates the callback for checking whether the current OS account is verified.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         * @deprecated since 11\n         * @useinstead osAccount.AccountManager#isOsAccountUnlocked\n         */\n        checkOsAccountVerified(callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether the current OS account is verified.\n         *\n         * @returns { Promise<boolean> } Returns whether the current OS account is verified.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         * @deprecated since 11\n         * @useinstead osAccount.AccountManager#isOsAccountUnlocked\n         */\n        checkOsAccountVerified(): Promise<boolean>;\n        /**\n         * Checks whether the specified OS account is verified.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @param { AsyncCallback<boolean> } callback - Indicates the callback for checking whether the specified OS account is verified.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid localId.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         * @deprecated since 11\n         */\n        checkOsAccountVerified(localId: number, callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether the specified OS account is verified.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @returns { Promise<boolean> } Returns whether the specified OS account is verified.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid localId.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         * @deprecated since 11\n         */\n        checkOsAccountVerified(localId: number): Promise<boolean>;\n        /**\n         * Checks whether the current OS account is unlocked.\n         *\n         * @returns { Promise<boolean> } Returns whether the current OS account is unlocked.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 11\n         */\n        isOsAccountUnlocked(): Promise<boolean>;\n        /**\n         * Gets the name of the OS account to which the caller belongs.\n         *\n         * @returns { Promise<string> } The promise returned by the function.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 12\n         */\n        getOsAccountName(): Promise<string>;\n        /**\n         * Obtains the number of all OS accounts created on a device.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @param { AsyncCallback<number> } callback - Returns the number of created OS accounts.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getOsAccountCount\n         */\n        getCreatedOsAccountsCount(callback: AsyncCallback<number>): void;\n        /**\n         * Obtains the number of all OS accounts created on a device.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @returns { Promise<number> } Returns the number of created OS accounts.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getOsAccountCount\n         */\n        getCreatedOsAccountsCount(): Promise<number>;\n        /**\n         * Obtains the number of all OS accounts created on a device.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @param { AsyncCallback<number> } callback - Returns the number of created OS accounts.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * This API can be called only by system applications.\n         * @since 9\n         */\n        getOsAccountCount(callback: AsyncCallback<number>): void;\n        /**\n         * Obtains the number of all OS accounts created on a device.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @returns { Promise<number> } Returns the number of created OS accounts.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * This API can be called only by system applications.\n         * @since 9\n         */\n        getOsAccountCount(): Promise<number>;\n        /**\n         * Obtains the local ID of an OS account from the current process UID.\n         *\n         * @param { AsyncCallback<number> } callback - Returns the local ID of the OS account.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getOsAccountLocalId\n         */\n        getOsAccountLocalIdFromProcess(callback: AsyncCallback<number>): void;\n        /**\n         * Obtains the local ID of an OS account from the current process UID.\n         *\n         * @returns { Promise<number> } Returns the local ID of the OS account.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getOsAccountLocalId\n         */\n        getOsAccountLocalIdFromProcess(): Promise<number>;\n        /**\n         * Gets the local ID of the current OS account.\n         *\n         * @param { AsyncCallback<number> } callback - Indicates the callback for getting the local ID of the current OS account.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        getOsAccountLocalId(callback: AsyncCallback<number>): void;\n        /**\n         * Get the local ID of the current OS account.\n         *\n         * @returns { Promise<number> } Returns the local ID of the current account.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        getOsAccountLocalId(): Promise<number>;\n        /**\n         * Gets the local ID of an OS account from the process UID\n         *\n         * @param { number } uid - Indicates the process UID.\n         * @param { AsyncCallback<number> } callback - Returns the local ID of the OS account.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getOsAccountLocalIdForUid\n         */\n        getOsAccountLocalIdFromUid(uid: number, callback: AsyncCallback<number>): void;\n        /**\n         * Gets the local ID of an OS account from the process UID\n         *\n         * @param { number } uid - Indicates the process UID.\n         * @returns { Promise<number> } Returns the local ID of the OS account.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getOsAccountLocalIdForUid\n         */\n        getOsAccountLocalIdFromUid(uid: number): Promise<number>;\n        /**\n         * Gets the local ID of the OS account associated with the specified UID.\n         *\n         * @param { number } uid - Indicates the process UID.\n         * @param { AsyncCallback<number> } callback - Indicates the callback for getting the local ID of the OS account associated with the specified UID.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid uid.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        getOsAccountLocalIdForUid(uid: number, callback: AsyncCallback<number>): void;\n        /**\n         * Get the local ID of the OS account associated with the specified UID.\n         *\n         * @param { number } uid - Indicates the process UID.\n         * @returns { Promise<number> } - Returns the local ID of the OS account associated with the specified UID.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid uid.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        getOsAccountLocalIdForUid(uid: number): Promise<number>;\n        /**\n         * Gets the local ID of the OS account associated with the specified UID synchronously.\n         *\n         * @param { number } uid - Indicates the process UID.\n         * @returns { number } Returns the local ID of the OS account associated with the specified UID.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300002 - Invalid uid.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 10\n         */\n        getOsAccountLocalIdForUidSync(uid: number): number;\n        /**\n         * Queries the local ID of an OS account which is bound to the specified domain account.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @param { DomainAccountInfo } domainInfo - Indicates the domain account info.\n         * @param { AsyncCallback<number> } callback - Returns the local ID of the OS account.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getOsAccountLocalIdForDomain\n         */\n        getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback<number>): void;\n        /**\n         * Queries the local ID of an OS account which is bound to the specified domain account.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @param { DomainAccountInfo } domainInfo - Indicates the domain account info.\n         * @returns { Promise<number> } Returns the local ID of the OS account.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getOsAccountLocalIdForDomain\n         */\n        getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo): Promise<number>;\n        /**\n         * Gets the local ID of the OS account associated with the specified domain account.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @param { DomainAccountInfo } domainInfo - Indicates the domain account info.\n         * @param { AsyncCallback<number> } callback - Indicates the callback for\n         *   getting the local ID of the OS account associated with the specified domain account.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid domainInfo.\n         * @syscap SystemCapability.Account.OsAccount\n         * This API can be called only by system applications.\n         * @since 9\n         */\n        getOsAccountLocalIdForDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback<number>): void;\n        /**\n         * Gets the local ID of the OS account associated with the specified domain account.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @param { DomainAccountInfo } domainInfo - Indicates the domain account info.\n         * @returns { Promise<number> } Returns the local ID of the OS account associated with the specified domain account.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid domainInfo.\n         * @syscap SystemCapability.Account.OsAccount\n         * This API can be called only by system applications.\n         * @since 9\n         */\n        getOsAccountLocalIdForDomain(domainInfo: DomainAccountInfo): Promise<number>;\n        /**\n         * Obtains all constraints of an OS account based on its local ID.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @param { AsyncCallback<Array<string>> } callback - Returns a list of constraints.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getOsAccountConstraints\n         */\n        getOsAccountAllConstraints(localId: number, callback: AsyncCallback<Array<string>>): void;\n        /**\n         * Obtains all constraints of an OS account based on its local ID.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @returns { Promise<Array<string>> } Returns a list of constraints.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getOsAccountConstraints\n         */\n        getOsAccountAllConstraints(localId: number): Promise<Array<string>>;\n        /**\n         * Obtains all constraints of an account based on its ID.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @param { AsyncCallback<Array<string>> } callback - Returns a list of constraints.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid localId.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         * @deprecated since 11\n         */\n        getOsAccountConstraints(localId: number, callback: AsyncCallback<Array<string>>): void;\n        /**\n         * Obtains all constraints of an account based on its ID.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @returns { Promise<Array<string>> } Returns a list of constraints.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid localId.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         * @deprecated since 11\n         */\n        getOsAccountConstraints(localId: number): Promise<Array<string>>;\n        /**\n         * Queries the id list of all activated OS accounts.\n         *\n         * @param { AsyncCallback<Array<number>> } callback - Returns a id list of OS accounts.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getActivatedOsAccountLocalIds\n         */\n        queryActivatedOsAccountIds(callback: AsyncCallback<Array<number>>): void;\n        /**\n         * Queries the id list of all activated OS accounts.\n         *\n         * @returns { Promise<Array<number>> } Returns a id list of OS accounts.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getActivatedOsAccountLocalIds\n         */\n        queryActivatedOsAccountIds(): Promise<Array<number>>;\n        /**\n         * Gets the local IDs of all activated OS accounts.\n         *\n         * @param { AsyncCallback<Array<number>> } callback - Indicates the callback for getting the local IDs of all activated OS accounts.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        getActivatedOsAccountLocalIds(callback: AsyncCallback<Array<number>>): void;\n        /**\n         * Gets the local IDs of all activated OS accounts.\n         *\n         * @returns { Promise<Array<number>> } Returns all activated accounts.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        getActivatedOsAccountLocalIds(): Promise<Array<number>>;\n        /**\n         * Gets the local ID of the foreground OS account.\n         *\n         * @returns { Promise<number> } Returns local ID of the foreground OS account.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 15\n         */\n        getForegroundOsAccountLocalId(): Promise<number>;\n        /**\n         * Queries information about the current OS account.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @param { AsyncCallback<OsAccountInfo> } callback - Returns information about the current OS account; returns {@code null} if the query fails.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getCurrentOsAccount\n         */\n        queryCurrentOsAccount(callback: AsyncCallback<OsAccountInfo>): void;\n        /**\n         * Queries information about the current OS account.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @returns { Promise<OsAccountInfo> } Returns information about the current OS account; returns {@code null} if the query fails.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getCurrentOsAccount\n         */\n        queryCurrentOsAccount(): Promise<OsAccountInfo>;\n        /**\n         * Gets information about the current OS account.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @param { AsyncCallback<OsAccountInfo> } callback - Returns information about the current OS account; returns {@code null} if the query fails.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         * @deprecated since 11\n         */\n        /**\n         * Gets information about the current OS account.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.GET_LOCAL_ACCOUNTS\n         * @param { AsyncCallback<OsAccountInfo> } callback - Returns information about the current OS account; returns {@code null} if the query fails.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 10\n         * @deprecated since 11\n         */\n        getCurrentOsAccount(callback: AsyncCallback<OsAccountInfo>): void;\n        /**\n         * Gets information about the current OS account.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @returns { Promise<OsAccountInfo> } Returns information about the current OS account; returns {@code null} if the query fails.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         * @deprecated since 11\n         */\n        /**\n         * Gets information about the current OS account.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.GET_LOCAL_ACCOUNTS\n         * @returns { Promise<OsAccountInfo> } Returns information about the current OS account; returns {@code null} if the query fails.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 10\n         * @deprecated since 11\n         */\n        getCurrentOsAccount(): Promise<OsAccountInfo>;\n        /**\n         * Gets the domain account information associated with the specified OS account.\n         *\n         * @permission ohos.permission.GET_DOMAIN_ACCOUNTS and ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS\n         * @param { number } localId - Indicates the local ID of the specified OS account.\n         * @returns { Promise<DomainAccountInfo> } Returns the domain account information.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300003 - OS account not found.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 15\n         */\n        getOsAccountDomainInfo(localId: number): Promise<DomainAccountInfo>;\n        /**\n         * Obtains the type of this OS account from the current process.\n         *\n         * @param { AsyncCallback<OsAccountType> } callback - Returns the OS account type. The value can be {@link OsAccountType#ADMIN},\n         *         {@link OsAccountType#NORMAL}, and {@link OsAccountType#GUEST}.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getOsAccountType\n         */\n        getOsAccountTypeFromProcess(callback: AsyncCallback<OsAccountType>): void;\n        /**\n         * Obtains the type of this OS account from the current process.\n         *\n         * @returns { Promise<OsAccountType> } Returns the OS account type. The value can be {@link OsAccountType#ADMIN},\n         *         {@link OsAccountType#NORMAL}, and {@link OsAccountType#GUEST}.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getOsAccountType\n         */\n        getOsAccountTypeFromProcess(): Promise<OsAccountType>;\n        /**\n         * Obtains the type of this OS account from the current process.\n         *\n         * @param { AsyncCallback<OsAccountType> } callback - Returns the OS account type. The value can be {@link OsAccountType#ADMIN},\n         *         {@link OsAccountType#NORMAL}, and {@link OsAccountType#GUEST}.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        getOsAccountType(callback: AsyncCallback<OsAccountType>): void;\n        /**\n         * Obtains the type of this OS account from the current process.\n         *\n         * @returns { Promise<OsAccountType> } Returns the OS account type. The value can be {@link OsAccountType#ADMIN},\n         *         {@link OsAccountType#NORMAL}, and {@link OsAccountType#GUEST}.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        getOsAccountType(): Promise<OsAccountType>;\n        /**\n         * Obtains the distributed virtual device ID (DVID).\n         * <p>\n         * If the same OHOS account has logged in to multiple devices, these devices constitute a super device\n         * through the distributed networking. On the connected devices, you can call this method to obtain the DVIDs.\n         * The same application running on different devices obtains the same DVID, whereas different applications\n         * obtain different DVIDs.\n         * <p>\n         *\n         * @permission ohos.permission.DISTRIBUTED_DATASYNC or ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @param { AsyncCallback<string> } callback - Returns the DVID if obtained; returns an empty string if no OHOS account has logged in.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#queryDistributedVirtualDeviceId\n         */\n        getDistributedVirtualDeviceId(callback: AsyncCallback<string>): void;\n        /**\n         * Obtains the distributed virtual device ID (DVID).\n         * <p>\n         * If the same OHOS account has logged in to multiple devices, these devices constitute a super device\n         * through the distributed networking. On the connected devices, you can call this method to obtain the DVIDs.\n         * The same application running on different devices obtains the same DVID, whereas different applications\n         * obtain different DVIDs.\n         * <p>\n         *\n         * @permission ohos.permission.DISTRIBUTED_DATASYNC or ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @returns { Promise<string> } Returns the DVID if obtained; returns an empty string if no OHOS account has logged in.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#queryDistributedVirtualDeviceId\n         */\n        getDistributedVirtualDeviceId(): Promise<string>;\n        /**\n         * Queries the distributed virtual device ID (DVID).\n         * <p>\n         * If the same OHOS account has logged in to multiple devices, these devices constitute a super device\n         * through the distributed networking. On the connected devices, you can call this method to obtain the DVIDs.\n         * The same application running on different devices obtains the same DVID, whereas different applications\n         * obtain different DVIDs.\n         * <p>\n         *\n         * @permission ohos.permission.DISTRIBUTED_DATASYNC or ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @param { AsyncCallback<string> } callback - Returns the DVID if obtained; returns an empty string if no OHOS account has logged in.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        queryDistributedVirtualDeviceId(callback: AsyncCallback<string>): void;\n        /**\n         * Queries the distributed virtual device ID (DVID).\n         * <p>\n         * If the same OHOS account has logged in to multiple devices, these devices constitute a super device\n         * through the distributed networking. On the connected devices, you can call this method to obtain the DVIDs.\n         * The same application running on different devices obtains the same DVID, whereas different applications\n         * obtain different DVIDs.\n         * <p>\n         *\n         * @permission ohos.permission.DISTRIBUTED_DATASYNC or ohos.permission.MANAGE_LOCAL_ACCOUNTS\n         * @returns { Promise<string> } Returns the DVID if obtained; returns an empty string if no OHOS account has logged in.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        queryDistributedVirtualDeviceId(): Promise<string>;\n        /**\n         * Obtain localId according to serial number\n         *\n         * @param { number } serialNumber - Indicates serial number.\n         * @param { AsyncCallback<number> } callback - Returns localId.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getOsAccountLocalIdForSerialNumber\n         */\n        getOsAccountLocalIdBySerialNumber(serialNumber: number, callback: AsyncCallback<number>): void;\n        /**\n         * Obtain localId according to serial number\n         *\n         * @param { number } serialNumber - Indicates serial number.\n         * @returns { Promise<number> } Returns localId.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getOsAccountLocalIdForSerialNumber\n         */\n        getOsAccountLocalIdBySerialNumber(serialNumber: number): Promise<number>;\n        /**\n         * Gets the local ID of the OS account associated with the serial number.\n         *\n         * @param { number } serialNumber - Indicates serial number.\n         * @param { AsyncCallback<number> } callback - Indicates the callback for getting the local ID of the OS account associated with the serial number.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid serialNumber.\n         * @throws { BusinessError } 12300003 - The account indicated by serialNumber dose not exist.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        getOsAccountLocalIdForSerialNumber(serialNumber: number, callback: AsyncCallback<number>): void;\n        /**\n         * Gets the local ID of the OS account associated with the serial number.\n         *\n         * @param { number } serialNumber - Indicates serial number.\n         * @returns { Promise<number> } Returns the local ID of the OS account associated with the serial number.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid serialNumber.\n         * @throws { BusinessError } 12300003 - The account indicated by serialNumber dose not exist.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        getOsAccountLocalIdForSerialNumber(serialNumber: number): Promise<number>;\n        /**\n         * Obtain serial number according to localId.\n         *\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @param { AsyncCallback<number> } callback - Returns serial number.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getSerialNumberForOsAccountLocalId\n         */\n        getSerialNumberByOsAccountLocalId(localId: number, callback: AsyncCallback<number>): void;\n        /**\n         * Obtain serial number according to localId.\n         *\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @returns { Promise<number> } Returns serial number.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead osAccount.AccountManager#getSerialNumberForOsAccountLocalId\n         */\n        getSerialNumberByOsAccountLocalId(localId: number): Promise<number>;\n        /**\n         * Gets the serial number for the specified os account local id.\n         *\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @param { AsyncCallback<number> } callback - Indicates the callback for getting the serial number for the specified os account local id.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid localId.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        getSerialNumberForOsAccountLocalId(localId: number, callback: AsyncCallback<number>): void;\n        /**\n         * Gets the serial number for the specified os account local id.\n         *\n         * @param { number } localId - Indicates the local ID of the OS account.\n         * @returns { Promise<number> } Returns the serial number according to local ID.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid localId.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 9\n         */\n        getSerialNumberForOsAccountLocalId(localId: number): Promise<number>;\n    }\n    /**\n     * Provides information about OS accounts, including the local ID, local name, and type of an OS account.\n     *\n     * @interface OsAccountInfo\n     * @syscap SystemCapability.Account.OsAccount\n     * @since 7\n     */\n    interface OsAccountInfo {\n        /**\n         * The local ID of an OS account.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         */\n        localId: number;\n        /**\n         * The local name of an OS account.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         */\n        localName: string;\n        /**\n         * Include: ADMIN, Normal, GUEST.\n         *\n         * @type { OsAccountType }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         */\n        type: OsAccountType;\n        /**\n         * Account constraints information.\n         *\n         * @type { Array<string> }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         */\n        constraints: Array<string>;\n        /**\n         * The account is verified or not.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         * @deprecated since 11\n         * @useinstead osAccount.OsAccountInfo#isUnlocked\n         */\n        isVerified: boolean;\n        /**\n         * The OS account is unlocked or not.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 11\n         */\n        isUnlocked: boolean;\n        /**\n         * OS account photo.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         */\n        photo: string;\n        /**\n         * Os account create time.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         */\n        createTime: number;\n        /**\n         * The last time to log in.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         */\n        lastLoginTime: number;\n        /**\n         * Os account serial number.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         */\n        serialNumber: number;\n        /**\n         * Os account is activated or not.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         * @deprecated since 11\n         * @useinstead osAccount.OsAccountInfo#isActivated\n         */\n        isActived: boolean;\n        /**\n         * The OS account is activated or not.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 11\n         */\n        isActivated: boolean;\n        /**\n         * Os account create completed or not.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         */\n        isCreateCompleted: boolean;\n        /**\n         * Distributed account info.\n         *\n         * @type { distributedAccount.DistributedInfo }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         */\n        distributedInfo: distributedAccount.DistributedInfo;\n        /**\n         * Domain account info.\n         *\n         * @type { DomainAccountInfo }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         */\n        domainInfo: DomainAccountInfo;\n    }\n    /**\n     * Provides information about domain accounts.\n     *\n     * @interface DomainAccountInfo\n     * @syscap SystemCapability.Account.OsAccount\n     * @since 8\n     */\n    interface DomainAccountInfo {\n        /**\n         * The domain name\n         *\n         * @type { string }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         */\n        domain: string;\n        /**\n         * The account name in the domain\n         *\n         * @type { string }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 8\n         */\n        accountName: string;\n        /**\n         * Indicates the server config identifier for the domain to which the account belongs.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 18\n         */\n        serverConfigId?: string;\n    }\n    /**\n     * Enumerates OS account types.\n     *\n     * @enum { number } OsAccountType\n     * @syscap SystemCapability.Account.OsAccount\n     * @since 7\n     */\n    enum OsAccountType {\n        /**\n         * Indicates the administrator account, which has the permission to manage other OS accounts.\n         *\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         */\n        ADMIN = 0,\n        /**\n         * Indicates a normal account, which has access to common functions of OS accounts.\n         *\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         */\n        NORMAL = 1,\n        /**\n         * Indicates a guest account, which is used to temporarily access the device and may be deleted at any time.\n         *\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 7\n         */\n        GUEST = 2\n    }\n    /**\n     * Provides abilities for the management of domain account.\n     *\n     * @syscap SystemCapability.Account.OsAccount\n     * @since 18\n     */\n    class DomainAccountManager {\n        /**\n         * Updates the information of the specified domain account.\n         *\n         * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.MANAGE_DOMAIN_ACCOUNTS\n         * @param { DomainAccountInfo } oldAccountInfo - Indicates the old domain account information.\n         * @param { DomainAccountInfo } newAccountInfo - Indicates the new domain account information.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - The new account info is invalid.\n         * @throws { BusinessError } 12300003 - The old account not found.\n         * @throws { BusinessError } 12300004 - The new account already exists.\n         * @static\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 18\n         */\n        static updateAccountInfo(oldAccountInfo: DomainAccountInfo, newAccountInfo: DomainAccountInfo): Promise<void>;\n    }\n    /**\n     * Defines the domain server config.\n     *\n     * @typedef DomainServerConfig\n     * @syscap SystemCapability.Account.OsAccount\n     * @since 18\n     */\n    interface DomainServerConfig {\n        /**\n         * Indicates the detail config parameters.\n         *\n         * @type { Record<string, Object> }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 18\n         */\n        parameters: Record<string, Object>;\n        /**\n         * Indicates the config identifier.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 18\n         */\n        id: string;\n        /**\n         * Indicates the domain to which the server config belongs.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 18\n         */\n        domain: string;\n    }\n    /**\n     * Provides abilities for managing domain server config.\n     *\n     * @syscap SystemCapability.Account.OsAccount\n     * @since 18\n     */\n    class DomainServerConfigManager {\n        /**\n         * Adds a domain server config.\n         *\n         * @permission ohos.permission.MANAGE_DOMAIN_ACCOUNT_SERVER_CONFIGS\n         * @param { Record<string, Object> } parameters - Indicates the server config parameters.\n         * @returns { Promise<DomainServerConfig> } Returns the added domain server config.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid server config parameters.\n         * @throws { BusinessError } 12300211 - Server unreachable.\n         * @throws { BusinessError } 12300213 - Server config already exists.\n         * @throws { BusinessError } 12300215 - The number of server config reaches the upper limit.\n         * @static\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 18\n         */\n        static addServerConfig(parameters: Record<string, Object>): Promise<DomainServerConfig>;\n        /**\n         * Removes a domain server config.\n         *\n         * @permission ohos.permission.MANAGE_DOMAIN_ACCOUNT_SERVER_CONFIGS\n         * @param { string } configId - Indicates the server config identifier.\n         * @returns { Promise<void> } Returns void.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300212 - Server config not found.\n         * @throws { BusinessError } 12300214 - Server config has been associated with an account.\n         * @static\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 18\n         */\n        static removeServerConfig(configId: string): Promise<void>;\n        /**\n         * Updates the target server config with the specified parameters.\n         *\n         * @permission ohos.permission.MANAGE_DOMAIN_ACCOUNT_SERVER_CONFIGS\n         * @param { string } configId - Indicates the server config identifier.\n         * @param { Record<string, Object> } parameters - Indicates the server config parameters.\n         * @returns { Promise<DomainServerConfig> } Returns the updated domain server config.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300002 - Invalid server config parameters.\n         * @throws { BusinessError } 12300211 - Server unreachable.\n         * @throws { BusinessError } 12300212 - Server config not found.\n         * @throws { BusinessError } 12300213 - Server config already exists.\n         * @throws { BusinessError } 12300214 - Server config has been associated with an account.\n         * @static\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 18\n         */\n        static updateServerConfig(configId: string, parameters: Record<string, Object>): Promise<DomainServerConfig>;\n        /**\n         * Gets the specified server config by identifier.\n         *\n         * @permission ohos.permission.MANAGE_DOMAIN_ACCOUNT_SERVER_CONFIGS\n         * @param { string } configId - Indicates the server config identifier.\n         * @returns { Promise<DomainServerConfig> } Returns the server config.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300212 - Server config not found.\n         * @static\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 18\n         */\n        static getServerConfig(configId: string): Promise<DomainServerConfig>;\n        /**\n         * Gets all server configs.\n         *\n         * @permission ohos.permission.MANAGE_DOMAIN_ACCOUNT_SERVER_CONFIGS\n         * @returns { Promise<Array<DomainServerConfig>> } Returns a list of server configs.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @static\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 18\n         */\n        static getAllServerConfigs(): Promise<Array<DomainServerConfig>>;\n        /**\n         * Gets the server config of the specified domain account.\n         *\n         * @permission ohos.permission.MANAGE_DOMAIN_ACCOUNT_SERVER_CONFIGS\n         * @param { DomainAccountInfo } domainAccountInfo - Indicates the domain account information.\n         * @returns { Promise<DomainServerConfig> } Returns the domain server config.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @throws { BusinessError } 12300001 - The system service works abnormally.\n         * @throws { BusinessError } 12300003 - Domain account not found.\n         * @static\n         * @syscap SystemCapability.Account.OsAccount\n         * @since 18\n         */\n        static getAccountServerConfig(domainAccountInfo: DomainAccountInfo): Promise<DomainServerConfig>;\n    }\n}\nexport default osAccount;\n",
}
export default FILE;